package com.qingzhuge.sys.entity;

import com.qingzhuge.entity.BasePkLongEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.validation.constraints.NotBlank;

/**
 * @author : zero.xiao
 * @description : 数据字典
 * @date :2018/6/8 0008 下午 14:56
 * @modified :
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Entity
@Table(name = "sys_dict")
public class SysDict extends BasePkLongEntity {
    /**
     * 字典类型
     */
    @NotBlank(message = "字典类型不能为空")
    private String type;
    /**
     * 字典码
     */
    @NotBlank(message = "字典码不能为空")
    private String code;
    /**
     * 排序
     */
    private Integer sortBy;
    /**
     * 备注
     */
    private String remark;
    /**
     * 删除标记  -1：已删除  0：正常
     */
    private Integer delFlag;

    private String parentType;

}
